'use strict';

const uniID = require('uni-id')

exports.main = async (event, context) => {
	
	const {
		mobile,
		password
	} = event
	
	console.log(event)
	
	const res = await uniID.login({
		mobile,
		password,
		queryField: ['mobile',]
	})
	
	console.log(res)

	//返回数据给客户端
	return event
};
